Example Program
File Format I/O
Accessing sequence data in files.
File "file_format.cpp"
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 |
Create a fasta file:
Open a standard library stream for binary write.
You can use both C++ iostreams or old style FILE pointer.
13 | |
14 | |
15 |
Read a fasta file into a string:
Open a stram for binary read.
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 |
Opens a file using a file reader string:
27 | |
28 | |
29 | |
30 | |
31 | |
32 |
See
SeqAn - Sequence Analysis Library - www.seqan.de